<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('考题信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sysTestPaper-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">试卷标题：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${sysTestPaper.title}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">课程名称：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${sysTestPaper.courseName}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">考试班级：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${sysTestPaper.deptName}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开始时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" name="startTime" th:text="${#dates.format(sysTestPaper.startTime, 'yyyy-MM-dd')}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">结束时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" name="endTime" th:text="${#dates.format(sysTestPaper.endTime, 'yyyy-MM-dd')}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">考试时间：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${sysTestPaper.duration} + '/分钟'"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">满分：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${sysTestPaper.grade} + '/分'"></div>
                </div>
            </div>
            <div id="ibox-content">
                <div id="vertical-timeline" class="vertical-container light-timeline" th:each="dto : ${sysTestPaper.sysSingleQuestions}">
                    <div class="vertical-timeline-block">
                        <div class="vertical-timeline-icon navy-bg">
                            <i class="fa fa-briefcase"></i>
                        </div>

                        <div class="vertical-timeline-content">
                            <p>[[${dto.titleDescription}]] ([[${dto.grade}]]分)</p>
                            <span class="vertical-date">
                         	选项A. [[${dto.optionA}]] <br>
                            选项B. [[${dto.optionB}]] <br>
                            选项C. [[${dto.optionC}]] <br>
                            选项D. [[${dto.optionD}]] <br><br>

                            正确答案 [[${dto.answer}]]
                     </span>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/sysTestPaper"

        $("input[name='startTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='endTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>